import request from '@/utils/request'
//日志start
export function FindGlobalNotes(url,data) {
    return request({  
      url:url,
      method: "post", 
      data,
    })
  }
  export function Insertglobalnotes(url,data) {
    return request({  
      url:url,
      method: "post", 
      data,
    })
  }
  export function GetGlobalNotesUsers1(url,data) {
    return request({  
      url:url,
      method: "post", 
      data,
    })
  }
  export function OutputNew(url,data) {
    return request({  
      url:url,
      method: "post", 
      data,
    })
  }
//日志end
//翻译start
export function addTranslate(url,data) {
    return request({
      url,
      method: "post", 
      data
    })
  }
//获取全部翻译
export function getAllTranslate(url,data) {
    return request({
      url: `${url}/${data}`,
      method: "get", 
    })
  }
//获取全部翻译
export function getTimeStamp(url) {
    return request({
      url,
      method: "get", 
    })
  }
//翻译end
//钉钉群消息配置start
export function getDingChatDefByPage(data) {
    return request({
      url: `/dingConfig/getDingChatDefByPage`,
      method: "post",
      data 
    })
  }
export function saveDingChatDef(data) {
    return request({
      url: `/dingConfig/saveDingChatDef`,
      method: "post",
      data 
    })
  }
export function getDingChatDefById(data) {
    return request({
      url: `/dingConfig/getDingChatDefById`,
      method: "get",
      params:data 
    })
  }
//删除指定群
export function delDingChatDefById(data) {
    return request({
      url: `/dingConfig/delDingChatDefById`,
      method: "get",
      params:data 
    })
  }
//钉钉群消息配置end
  //权限码判断
  export function hasPermissions(data) {
    return request({
      url: '/common/hasPermissions',
      method: "post", 
      data
    })
  }
    //查看当前登录用户
export function getEmployee(data) {
    return request({
      url: '/common/getEmployee',
      method: "get", 
      params:data
    })
  }
    //获取角色列表
export function getListRoleByPage(data) {
    return request({
      url: '/employee/getListRoleByPage',
      method: "get", 
      params:data
    })
  }
  export function commonUploadFile(url,data) {
    return request({  
      url:url,
      method: "post", 
      data
    })
  }
//消息配置页面start
export function getDingSendOriginByPage(data) {
    return request({
      url: `/dingConfig/getDingSendOriginByPage`,
      method: "post",
      data 
    })
  }

export function saveDingSendOrigin(data) {
    return request({
      url: `/dingConfig/saveDingSendOrigin`,
      method: "post",
      data 
    })
  }
  //消息退订人员清单
export function getOriginSubscribe(data) {
    return request({
      url: `/dingConfig/getOriginSubscribe`,
      method: "get",
      params:data
    })
  }
export function getListEmployeeByPage(data) {
    return request({
      url: `/employee/getListEmployeeByPage`,
      method: "get",
      params:data
    })
  }
export function saveOriginSubscribe(data) {
    return request({
      url: `/dingConfig/saveOriginSubscribe`,
      method: "post",
      data
    })
  }
  //配置项目列表页
export function getConfigSelectListByPage(data) {
    return request({
      url: `/configManage/getConfigSelectListByPage`,
      method: "post",
      data
    })
  }
  export function getConfigSelectListById(data) {
    return request({
      url: `/configManage/getConfigSelectListById `,
      method: "get",
      params:data 
    })
  }
export function getDingSendOriginByOrigin(data) {
    return request({
      url: `/dingConfig/getDingSendOriginByOrigin`,
      method: "get",
      params:data
    })
  }
export function delSelectList(data) {
    return request({
      url: `/configManage/delSelectList`,
      method: "get",
      params:data
    })
  }
export function saveSelectList(data) {
    return request({
      url: `/configManage/saveSelectList`,
      method: "post",
      data
    })
  }
//消息配置页面end
//openapi Start

export function getRequestOptions(data) {
    return request({
      url: `/externalInterface/getRequestOptions`,
      method: "post",
      data
    })
  }
export function getAppUsersByPage(data) {
    return request({
      url: `/externalInterface/getAppUsersByPage`,
      method: "post",
      data
    })
  }
  //保存openApi接口
export function saveRequestOptions(data) {
    return request({
      url: `/externalInterface/saveRequestOptions`,
      method: "post",
      data
    })
  }
  //保存openApi接口
export function saveAppUser(data) {
    return request({
      url: `/externalInterface/saveAppUser`,
      method: "post",
      data
    })
  }
  //查询指定api接口
export function getRequestOptionsById(data) {
    return request({
      url: `/externalInterface/getRequestOptionsById`,
      method: "get",
      params:data
    })
  }
  //查询指定api接口
export function getAppUserById(data) {
    return request({
      url: `/externalInterface/getAppUserById`,
      method: "get",
      params:data
    })
  }
//openapi end

//配置发布 start
 export function getProgramReleaseInfo(data) {
    return request({
      url: `/programrelease/getProgramReleaseInfo`,
      method: "get",
      params:data
    })
  }
 export function getProgramInfo(data) {
    return request({
      url: `/programrelease/getProgramInfo`,
      method: "get",
      params:data
    })
  }
 export function getProgramReleaseInfoAuth(data) {
    return request({
      url: `/programrelease/getProgramReleaseInfoAuth`,
      method: "get",
      params:data
    })
  }
 export function queryProgramReleaseLogsByReleaseId(data) {
    return request({
      url: `/programrelease/queryProgramReleaseLogsByReleaseId`,
      method: "get",
      params:data
    })
  }
 export function rollback(data) {
    return request({
      url: `/programrelease/rollback`,
      method: "post",
      data
    })
  }
 export function release(data) {
    return request({
      url: `/programrelease/release`,
      method: "post",
      data
    })
  }
//  export function queryProgramReleaseLogsByReleaseId(data) {
//     return request({
//       url: `/programrelease/queryProgramReleaseLogsByReleaseId`,
//       method: "post",
//       data
//     })
//   }
 export function getProgramReleases(data) {
    return request({
      url: `/programrelease/getProgramReleases`,
      method: "post",
      data
    })
  }
 export function auditProgramReleases(data) {
    return request({
      url: `/programrelease/auditProgramReleases`,
      method: "post",
      data
    })
  }
//配置发布 end
//导入配置页面start

export function getImportEventByPage(data) {
    return request({
      url: `/importEvent/getImportEventByPage`,
      method: "post",
      data
    })
  }
export function saveImportEvent(data) {
    return request({
      url: `/importEvent/saveImportEvent`,
      method: "post",
      data
    })
  }

// 修改导入配置页面的状态
export function saveImportEventStatus(data) {
    return request({
        url:'/importEvent/saveImportEventStatus',
        method: "post",
        data
    })
}
//
export function getImportEventById(data) {
    return request({
        url:'/importEvent/getImportEventById',
        method: "get",
        params:data
    })
}
//导入配置页面end

//common api start
export function getFilePath(url,data) {
    return request({  
      url,
      method: "get", 
      params:data
    })
  }
//common api end

//批量日志start

//获取系统列表
export function getSys(data) {
    return request({
        url:'/batchOperationLog/getSys',
        method: "get",
        params:data
    })
}
//批量日志详情接口
export function getBatchOperationLog(data) {
    return request({
        url:'/batchOperationLog/getBatchOperationLog',
        method: "post",
        data
    })
}
//批量日志影响数据条数 
export function getBatchOperationLogKeys(data) {
    return request({
        url:'/batchOperationLog/getBatchOperationLogKeys',
        method: "post",
        data
    })
}
//批量日志end


